
AUX_SOURCE_DIRECTORY(src SRC_TEST_SPEED)

SET(INCLUDE_TEST "include")
SET(CMAKE_CXX_STANDARD 14)

# opencv
SET(OpenCV_DIR "~/libs/opencv-3.4.9/build")
FIND_PACKAGE(OpenCV REQUIRED)
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})

# some more
INCLUDE_DIRECTORIES(${INCLUDE_TEST})

ADD_EXECUTABLE(../miao ${SRC_TEST_SPEED})
#opencv
TARGET_LINK_LIBRARIES(../miao ${OpenCV_LIBS}) 